package com.lkm.market2_0.m_imple.steelyardserver.server;

import com.lkm.javatool.URLHelp;
import com.lkm.javatool.lang.NameValueP;
import com.lkm.market2_0.AppDataCache;
import com.lkm.market2_0.ExpandConfig;
import com.lkm.market2_0.entity.OrganizationInfo;
import com.lkm.market2_0.entity.SteelyardInfo;




public class Config {






    public static String createQrCode(SteelyardInfo steelyardInfo,String orderNum) {
        if(steelyardInfo.codetype==SteelyardInfo.codetype_0||steelyardInfo.codetype==SteelyardInfo.codetype_3){
            try {
                if(steelyardInfo.getTraceurl().contains("satrace.cn")){
                    return URLHelp.appenParamsToUrl( steelyardInfo.getTraceurl(),new NameValueP("oid",""+steelyardInfo.getOrg()),new NameValueP("keys", orderNum));
                }else {
                    return URLHelp.appenParamsToUrl( steelyardInfo.getTraceurl(),new NameValueP("keys", orderNum));
                }
//                return URLHelp.appenParamsToUrl( steelyardInfo.getTraceurl(),new NameValueP("oid",""+steelyardInfo.getOrg()),new NameValueP("keys", orderNum));

            } catch (Exception e) {
                e.printStackTrace();
            }
        }else{
            return orderNum;
        }
        return "";
    }


    
    
    public final static boolean isSteelyardVirtualTest=false;



    public final static  int upSteelyardDataTime = 5*1000;


    public   static  int upSteelyardStatusTime = 20*1000;



    public final static int writeOutTime=20*1000;




    public  static int steelyardActionOutTime=30*1000;



}
